package com.wcsy.myblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@TableName("tb_type")
public class Type {
  @TableId(type = IdType.INPUT)
  @ApiModelProperty("类型id")
  private long typeId;
  @ApiModelProperty("类型名称")
  private String typeName;
  @ApiModelProperty("类型图片")
  private String typeImg;
  @ApiModelProperty("添加类型时间")
  private String typeTime;
  @ApiModelProperty("父级类型id")
  private long typePid;
  @ApiModelProperty("用户id")
  private long userId;
  @ApiModelProperty("子级类型")
  private List<Type> children;

  public List<Type> getChildren() {
    return children;
  }

  public void setChildren(List<Type> children) {
    this.children = children;
  }

  public long getTypeId() {
    return typeId;
  }

  public void setTypeId(long typeId) {
    this.typeId = typeId;
  }


  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }


  public String getTypeImg() {
    return typeImg;
  }

  public void setTypeImg(String typeImg) {
    this.typeImg = typeImg;
  }


  public String getTypeTime() {
    return typeTime;
  }

  public void setTypeTime(String typeTime) {
    this.typeTime = typeTime;
  }

  public long getTypePid() {
    return typePid;
  }

  public void setTypePid(long typePid) {
    this.typePid = typePid;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }

}
